package com.xyh.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * TODO
 *
 * @author 丁德成
 * @explain
 * @date 2023/5/12
 */
@Data
@TableName(value = "shop_product")
public class Product {
    @TableId(value="pid",type = IdType.AUTO )
    private Integer pid;
    private String pname;
    //小数类型必须使用BigDecimal
    private BigDecimal pprice;
    private Integer stock;
}
